package com.ba.baseandroid

import android.os.Bundle
import android.widget.TextView
import com.alibaba.android.arouter.launcher.ARouter
import qsos.lib.base.base.activity.BaseActivity

class MainActivity(
    override val layoutId: Int = R.layout.activity_main,
    override val reload: Boolean = false
) : BaseActivity() {
    private var tv_click: TextView? =null;
    override fun getData() {

    }

    override fun initData(savedInstanceState: Bundle?) {

    }

    override fun initView() {
        tv_click=findViewById(R.id.tv_click)
        tv_click?.setOnClickListener {
            ARouter.getInstance().build("/normal/web")
                .withString("title", "玩安卓")
                .withString("url", "https://segmentfault.com/a/1190000010711024")
                .navigation()
        }
    }

    override fun onRestart() {
        super.onRestart()
    }

    override fun onResume() {
        super.onResume()

    }
}